#root {
/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
}

/* 首页报表组件统一样式 */
.orders-card,
.dashboard-card,
.total-sales-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.orders-card:hover,
.dashboard-card:hover,
.total-sales-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 报表卡片标题样式 */
.ant-card-head {
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 16px !important;
}

.ant-card-head-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding: 0 !important;
}

/* 卡片内容区域 */
.ant-card-body {
  padding: 16px !important;
}

/* 图表容器样式 */
.chart-container {
  position: relative;
  height: 160px;
  width: 100%;
}

/* 饼图容器样式 */
.pie-container {
  position: relative;
  height: 180px;
  width: 100%;
}

/* 百分比文本样式 */
.percentage-text {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  line-height: 1;
}

.percentage-label {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* 统计数字样式 */
.ant-statistic-content {
  font-size: 24px !important;
  font-weight: bold !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .ant-card-head {
    padding: 10px 12px !important;
  }
  
  .ant-card-body {
    padding: 12px !important;
  }
  
  .chart-container {
    height: 140px;
  }
  
  .pie-container {
    height: 160px;
  }
  
  .ant-statistic-content {
    font-size: 20px !important;
  }
}

/* AnnualSales组件样式 */
.annual-sales-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.date-range-buttons .ant-btn {
  border-radius: 6px;
  font-size: 12px;
}

.course-ranking {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 16px;
}

.ranking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.ranking-item:hover {
  background-color: #f3f4f6;
}

.ranking-item.top {
  background-color: #e0f2fe;
  border: 1px solid #93c5fd;
}

.rank-number {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  margin-right: 8px;
}

.rank-number.first {
  background-color: #f59e0b;
}

.rank-number.second {
  background-color: #6b7280;
}

.rank-number.third {
  background-color: #d97706;
}

.rank-number.other {
  background-color: #9ca3af;
}
